﻿<div class="row h-100" style="padding-top:30px;padding-left:30px;">
    <div class="col-10 h-100" style="overflow-y:auto;background-color:white;padding:10px 250px 0 30px;border-radius:15px;">
        <span style="margin-top:40px;font-size:20px">编辑产品</span>
        <form class="form-group w-100 ">
            <div class="input-group mb-3" style="margin-top:30px">
                <div class="input-group-prepend" style="width:10%">
                    <span id="basic-addon1">产品名称</span>
                </div>
                <input type="text" class="form-control" placeholder="" aria-label="Username" aria-describedby="basic-addon1" style="margin-left:100px" name="ProductName">
            </div>
            <div class="input-group mb-3" style="margin-top:30px">
                <div class="input-group-prepend" style="width:10%">
                    <span id="basic-addon1">分类</span>
                </div>
                <input type="text" class="form-control" placeholder="" aria-label="Username" aria-describedby="basic-addon1" style="margin-left:100px" name="ClassiFication">
            </div>
            <div class="input-group mb-3" style="margin-top:30px">
                <div class="input-group-prepend" style="width:10%">
                    <span id="basic-addon1">风控波动范围</span>
                </div>
                <span class="input-group-text" id="basic-addon1" style="margin-left:100px">最小值</span>
                <input type="text" class="form-control w-25" placeholder="" aria-label="Username" aria-describedby="basic-addon1" value="0.010" disabled="disabled">
                <span class="input-group-text" id="basic-addon1">最大值</span>
                <input type="text" class="form-control w-25" placeholder="" aria-label="Username" aria-describedby="basic-addon1" value="0.300" disabled="disabled">
            </div>
            <div class="input-group mb-3" style="margin-top:30px">
                <div class="input-group-prepend" style="width:10%">

                </div>
                <label class="form-control" placeholder="" aria-label="Username" aria-describedby="basic-addon1" style="margin-left:100px;background-color:#f2dede;height:50px">
                    注意： 客户订单在条件范围内时，会根据订单的涨或跌，自动减或加最小值与最大值之间的随机数，留空或者0则为不开启
                </label>
            </div>
            <div class="input-group mb-3" style="margin-top:30px">
                <div class="input-group-prepend" style="width:10%">
                    <span id="basic-addon1">随机波动</span>
                </div>
                <input type="text" class="form-control" placeholder="" aria-label="Username" aria-describedby="basic-addon1" style="margin-left:100px" value="0.200" disabled="disabled">
            </div>
            <div class="input-group mb-3" style="margin-top:30px">
                <div class="input-group-prepend" style="width:10%">

                </div>
                <label class="form-control" placeholder="" aria-label="Username" aria-describedby="basic-addon1" style="margin-left:100px;background-color:#f2dede;height:50px">
                    注意： 产品获取接口值后，会加上+-此处的值。如5，则在接口获取的数据中加上-5~5之间的随机数。
                </label>
            </div>
            <div class="input-group mb-3" style="margin-top:30px">
                <div class="input-group-prepend" style="width:10%">
                    <span id="basic-addon1">产品代码</span>
                </div>
                <input type="text" class="form-control disabled" placeholder="" aria-label="Username" aria-describedby="basic-addon1" style="margin-left:100px;" value="" disabled="disabled">
            </div>
            <div class="input-group mb-3" style="margin-top:30px">
                <div class="input-group-prepend" style="width:10%">
                    <span id="basic-addon1">时间玩法间隔</span>
                </div>
                <input type="text" class="form-control" placeholder="" aria-label="Username" aria-describedby="basic-addon1" style="margin-left:100px" disabled="disabled" value="">
            </div>
            <div class="input-group mb-3" style="margin-top:30px">
                <div class="input-group-prepend" style="width:10%">
                </div>
                <label class="form-control" placeholder="" aria-label="Username" aria-describedby="basic-addon1" style="margin-left:100px;background-color:#f2dede;height:50px">
                    注意： 如时间为：1分、3分、5分、8分，则请用字母逗号将时间分开，如输入：1,3,5,8。如没有此玩法则留空。必须为四个
                </label>
            </div>
            <div class="input-group mb-3" style="margin-top:30px">
                <div class="input-group-prepend" style="width:10%">
                    <span id="basic-addon1">盈亏比例</span>
                </div>
                <input type="text" class="form-control" placeholder="" aria-label="Username" aria-describedby="basic-addon1" style="margin-left:100px" disabled="disabled">
            </div>
            <div class="input-group mb-3" style="margin-top:30px">
                <div class="input-group-prepend" style="width:10%">

                </div>
                <label class="form-control" placeholder="" aria-label="Username" aria-describedby="basic-addon1" style="margin-left:100px;background-color:#f2dede;height:50px">
                    注意： 如比例为：75%、77%，80%、85%，则请用字母逗号将比例分开，如输入：75,77,80,85。必须为四个，且不得为空
                </label>
            </div>
            <div class="input-group mb-3" style="margin-top:30px">
                <div class="input-group-prepend" style="width:10%">
                    <span id="basic-addon1">开市时间</span>
                </div>
                <span class="input-group-text" id="basic-addon1" style="margin-left:100px">周一</span>
                <input type="text" class="form-control w-25" placeholder="如：00：00~03：00|08：00~24：00" aria-label="Username" aria-describedby="basic-addon1" disabled="disabled">
                <span class="input-group-text" id="basic-addon1">周二</span>
                <input type="text" class="form-control w-25" placeholder="如：00：00~03：00|08：00~24：00" aria-label="Username" aria-describedby="basic-addon1" disabled="disabled">
            </div>
            <div class="input-group mb-3" style="margin-top:30px">
                <div class="input-group-prepend" style="width:10%">
                    <span id="basic-addon1"></span>
                </div>
                <div class="input-group-text" id="basic-addon1" style="margin-left:100px">周三</div>
                <input type="text" class="form-control w-25" placeholder="如：00：00~03：00|08：00~24：00" aria-label="Username" aria-describedby="basic-addon1" disabled="disabled">
                <span class="input-group-text" id="basic-addon1">周四</span>
                <input type="text" class="form-control w-25" placeholder="如：00：00~03：00|08：00~24：00" aria-label="Username" aria-describedby="basic-addon1" disabled="disabled">

            </div>
            <div class="input-group mb-3 w-100" style="margin-top:30px">
                <div class="input-group-prepend" style="width:10%">
                    <span id="basic-addon1"></span>
                </div>
                <span class="input-group-text" id="basic-addon1" style="margin-left:100px">周五</span>
                <input type="text" class="form-control" placeholder="如：00：00~03：00|08：00~24：00" aria-label="Username" aria-describedby="basic-addon1" style="width:20%" disabled="disabled">
                <span class="input-group-text" id="basic-addon1">周六</span>
                <input type="text" class="form-control" placeholder="如：00：00~03：00|08：00~24：00" aria-label="Username" aria-describedby="basic-addon1" style="width:20%" disabled="disabled">
                <span class="input-group-text" id="basic-addon1">周日</span>
                <input type="text" class="form-control" placeholder="如：00：00~03：00|08：00~24：00" aria-label="Username" aria-describedby="basic-addon1" style="width:20%" disabled="disabled">
            </div>
            <div class="input-group mb-3" style="margin-top:30px">
                <div class="input-group-prepend" style="width:10%">

                </div>
                <label class="form-control" placeholder="" aria-label="Username" aria-describedby="basic-addon1" style="margin-left:100px;background-color:#f2dede;height:60px">
                    注意： 开市时间为00:00~18:00则输入 00:00~18:00 开市时间为00:00~03:00 和 08:00~24:00;则输入 如：00:00~03:00|08:00~24:00 不得出现中文符号，全天不开市请留空,时间一定要填写准确
                </label>
            </div>
            <div class="input-group mb-3" style="margin-top:30px">
                <div class="input-group-prepend" style="width:10%">
                    <span id="basic-addon1">备注</span>
                </div>
                <textarea type="text" class="form-control" placeholder="" aria-label="Username" aria-describedby="basic-addon1" style="margin-left:100px"></textarea>
            </div>
            <div class="input-group mb-3" style="margin-top:30px">
                <div class="input-group-prepend" style="width:10%">

                </div>
                <input type="submit" class="btn btn-success" onclick="" value="提交" id="sub" style="margin-left:100px">
            </div>
        </form>
    </div>
</div>
<script>
                $(function () {
                    var productname = $("#ProductName").val();
                    $("#sub").on("click", function () {

                        $.ajax({
                            type: "POST",
                            url: URL + "/admin_login",
                            data: { "poroductname": productname },
                            dataType: "json",
                            success: function (data) {

                            }
                        });
                    })
                })
</script>
